package cn.uc.bs;

import java.util.ArrayList;
import java.util.List;



public class DiaryGroup {
    String groupName = "Default Group";
    List<DiaryObejct> diaries = new ArrayList<DiaryObejct>();
    
    public DiaryGroup(String aGroupName){
        groupName = aGroupName;
    }
    
    public String getName(){
        return groupName;
    }
    
    public void addDiray(DiaryObejct aObejct){
        diaries.add(aObejct);
    }
    
    public DiaryObejct getDiary(int index){
        return diaries.get(index);
    }
    
    public int getDiaryCount(){
        return diaries.size();
    }
}
